import mongoose from 'mongoose';

const categorySchema = new mongoose.Schema({
    name: {type: String, required: true},
    parentId: {type: String, required: true, default: 0}
})

const CategoryModel = mongoose.model('categorys', categorySchema);

export default CategoryModel;
